package org.headquarter.object;

import org.headquarter.persistance.LoadError;
import org.w3c.dom.Element;

public class Place extends Node{

    private static final String NAME = "name";
    Text name;

    public void setName(Text name) {
	this.name = name;
    }

    public Element toXml(org.w3c.dom.Document doc){
	Element e = super.toXml(doc);
	e.setAttribute(NAME, name.getValue());
	return e;
    }

    public void loadXml(Element e) throws ClassNotFoundException, InstantiationException, IllegalAccessException, LoadError{
	super.loadXml(e);
	name = new Text(e.getAttribute(NAME));
    }


    public Text getName() {
	return name;
    }




}
